<?php

namespace App\Controller\App;

use App\Base\BaseCache;
use App\Base\BaseController4Restful;
use App\Base\Format;
use App\Entity\User;
use App\Model\LazyCommon\UserModel;
use App\Repository\CategoryRepository;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;

/**
 * @route("/app")
 */
class UserController extends BaseController4Restful
{
    /**
     * @Route("/user/home", name="AppUserHome")
     */
    public function AppUserHome()
    {
        $user = $this->getUser();
        $this->setGroups("home");

        return $this->json_out(200,"数据获取成功",$user);
    }
}
